package org.jeecg.common.context;



import org.jeecg.common.template.BaseExecute;
import org.jeecg.common.util.TwoTuple;

import java.util.List;

/**
 * 策略模式-控制器
 */
public class BaseContext<T> {

    private BaseExecute baseExecute;

    public BaseContext(BaseExecute baseExecute){
        this.baseExecute = baseExecute;
    }

    public List<T> baseExecute(){
        return baseExecute.baseExecute();
    }

    public List<T> baseExecute(T data){
        return baseExecute.baseExecute();
    }

    public TwoTuple<List<T>, T> twoTupleExecute(T data){
        return baseExecute.twoTupleExecute(data);
    }


    public Object objectExecute(T data){
        return baseExecute.objectExecute(data);
    }

    public <T> Object objectsExecute(T data){
        return baseExecute.objectsExecute(data);
    }
}
